#include <iostream>
using namespace std;
int main(){
	int length = 0;
	cin >> length;
	int arr[length] = {0};
	for(int i=0;i<length;i++){
		cin >> arr[i];
	}
	for(int i=0;i<length;i++){
		int tmp = 0;
	    for(int j=0;j<i;j++){
	    	if(arr[i]>arr[j]){
	    		tmp++;
			}
		}
		cout<<tmp<<" ";
	}
	return 0;
}
